

const productionDomainNames = [
  'app.shb.ltd',
  'cloud.shb.ltd',
  'shb3144.eapps.dingtalkcloud.com',
  'cloud.servicemobile.net',
  'cloud.servicemobile.cn',
]

function isProductionByDomain() {
  return productionDomainNames.includes(window.location.hostname)
}

function getExternalComponentDomainName() {
  return isProductionByDomain() ? 'https://static.shb.ltd' : 'https://static-test.shb.ltd'
}

export {
  isProductionByDomain,
  getExternalComponentDomainName
}
